<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<?php
$this->breadcrumbs = array(
    $this->module->id,
);
?>
<div class="form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
                'id' => 'add-role',
                'enableClientValidation' => true,
                'clientOptions' => array('validateOnSubmit' => true),
            ));
    ?>
    <div class="row">
        <?php echo $form->labelEx($model, 'role'); ?>
        <?php echo $form->textField($model, 'role'); ?>
        <?php echo $form->error($model, 'role'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'operations'); ?>
        <?php echo $form->textField($model, 'operations'); ?>
        <?php echo $form->error($model, 'operations'); ?>
    </div>
    <div class="row buttons">
        <?php echo CHtml::submitButton('Add Role'); ?>
    </div>
    <?php
    $this->endWidget();
    ?>
</div>